/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cocos2d.common;

import tbgb.components.twodimesion.point2dimplements.Point2DPosition;

/**
 *
 * @author KieuAnh
 */
public class CCPoint extends Point2DPosition
{
    public CCPoint()
    {
        
    }
    
    public CCPoint(float x, float y)
    {
        super(x, y);
    }
    
    public CCPoint(CCPoint other)
    {
        super(other);
    }
    
    public CCPoint copy()
    {
        return new CCPoint(this);
    }
    
    public CCPoint add(CCPoint other)
    {
        CCPoint p = this.copy();
        p.add(other.X, other.Y);
        
        return p;
    }
}